/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDataUnitSystemManagement;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 数据属性单位管理业务对象 isfd_data_unit_system_management
 *
 * @author Lion Li
 * @date 2024-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDataUnitSystemManagement.class, reverseConvertGenerate = false)
public class IsfdDataUnitSystemManagementBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 单位系统
     */
    @NotBlank(message = "单位系统不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitSystem;

    /**
     * 英文单位名称
     */
    @NotBlank(message = "英文单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitEnglishName;

    /**
     * 中文单位名称
     */
    @NotBlank(message = "中文单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitChineseName;

    /**
     * 单位符号
     */
    @NotBlank(message = "单位符号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitSymbol;

    /**
     * 单位关联的属性
     */
    @NotBlank(message = "单位关联的属性不能为空", groups = { AddGroup.class, EditGroup.class })
    private String associatedQuantity;

    /**
     * 单位描述
     */
    @NotBlank(message = "单位描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitDescription;
}
